package com.shujushow.chapter01.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * Created by xinshu on 2016/3/31.
 */
@Service
public class HelloService {

    @Value("${name: World}")
    private String name;

    public String getHelloMessage(){
        return "Hello " + this.name;
    }
}
